import VueRouter from 'vue-router'
import home from './components/tabbar/home.vue'
import member from './components/tabbar/member.vue'
import cart from './components/tabbar/cart.vue'
import search from './components/tabbar/search.vue'
import NewsList from './components/news/NewsList.vue'
var router = new VueRouter({
    routes:[
        {
            path:"/home",
            component:home
        },
        {
            path:"/home/NewsList",
            component:NewsList
        },
        {
            path:"/member",
            component:member
        },
        {
            path:"/cart",
            component:cart
        },
        {
            path:"/search",
            component:search
        },
        {
            path:"/",
            redirect:'/home'
        },
    ],
    linkActiveClass:'mui-active'
})

export default router